import React, { Component } from 'react';
import Toast from 'react-native-root-toast';
import { Dimensions, Platform } from "react-native";

export default class DevicesUtils extends React.Component
{
    static isIphoneX()
    {
        var dimen = Dimensions.get('window');
        return (
            Platform.OS === 'ios' &&
            !Platform.isPad &&
            !Platform.isTVOS &&
            (dimen.height === 812 || dimen.width === 812)
        );
    }

}
